package docModel

type UserLoginReq struct {
	Username  string `json:"username" binding:"required"`   //用户名
	Password  string `json:"password" binding:"required"`   //密码
	SearchId  string `json:"search_id" binding:"required"`  //验证id
	CheckCode string `json:"check_code" binding:"required"` //验证码
}
type UserLoginResp struct {
	Token    string `json:"token"`
	NickName string `json:"nick_name"`
	UserID   string `json:"user_id"`
}

type UserRegisterReq struct {
	NickName   string `json:"nick_name" binding:"required"`
	Username   string `json:"username" binding:"required"`
	Password   string `json:"password" binding:"required"`
	RePassword string `json:"re_password" binding:"required,eqfield=Password"`
	SearchId   string `json:"search_id" binding:"required"`  //验证id
	CheckCode  string `json:"check_code" binding:"required"` //验证码
}
type UpdateUserInfoReq struct {
	NickName string `json:"nick_name" binding:"required"`
	Name     string `json:"name" binding:"required"`
	Phone    string `json:"phone" binding:"required"`
	Text     string `json:"text" binding:"required"`
	Sex      string `json:"sex" binding:"required"`
}
type AddFriendsReq struct {
	UserID string `json:"user_id"`
}

type AddImagToUserReq struct {
	ImgID string `json:"img_id"` //ID
}
type ExitGroupReq struct {
	GroupID string `json:"group_id"`
	UserID  string `json:"user_id"`
}
